s = 'hello,Python'
# replace(old, new)
print(s.replace('Python', 'Java'))

s1 = 'hello,Python,Python,Python,Python'
# replace(old, new, 替换数量)
print(s1.replace('Python', 'Java', 1))

# 列表
lst = ['hello', 'java', 'Python']
print('|'.join(lst))
print(''.join(lst))

# 元组
t = ('hello', 'java', 'Python')
print(''.join(t))
